import request from '@/utils/request'

// 查询商品参数列表
export function listSpecification_option(query) {
  return request({
    url: '/catalog/specification_option/list',
    method: 'get',
    params: query
  })
}

// 查询商品参数详细
export function getSpecification_option(optionId) {
  return request({
    url: '/catalog/specification_option/' + optionId,
    method: 'get'
  })
}

// 新增商品参数
export function addSpecification_option(data) {
  return request({
    url: '/catalog/specification_option',
    method: 'post',
    data: data
  })
}

// 修改商品参数
export function updateSpecification_option(data) {
  return request({
    url: '/catalog/specification_option',
    method: 'put',
    data: data
  })
}

// 删除商品参数
export function delSpecification_option(optionId) {
  return request({
    url: '/catalog/specification_option/' + optionId,
    method: 'delete'
  })
}

// 导出商品参数
export function exportSpecification_option(query) {
  return request({
    url: '/catalog/specification_option/export',
    method: 'get',
    params: query
  })
}